package com.rado.tf.gui.event;

import com.rado.tf.gui.view.common.Presenter;
import org.springframework.context.ApplicationEvent;

/**
 * Created by parado on 07.03.14.
 */
public class UIEvent extends ApplicationEvent
{
   private UIEventTypes eventType;

   /**
    * Create a new ApplicationEvent.
    *
    * @param source the component that published the event (never {@code null})
    */
   public <T extends Presenter> UIEvent(T source, UIEventTypes eventType)
   {
      super(source);
      this.eventType = eventType;
   }

   public UIEventTypes getEventType()
   {
      return eventType;
   }
}
